package com.scheduled.task.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Set;

@TableName("t_user")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysUser {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String deptId;
    private String deptName;
    private Integer peopleId; //人员id
    private String peopleName; //人员姓名
    private String avatar;
    private String company;
    private Boolean isDeleted;

    @TableField(exist = false)
    private String deptOutId;

    @TableField(exist = false)
    private List<String> roles;

    @TableField(exist = false)
    private List<String> roleComments;

    @TableField(exist = false)
    private String token;


//    @TableField(exist = false)
//    private List<String> roleNameList;
}
